//
//  PPCouponCell.m
//  PPDL
//
//  Created by 王洋 on 2019/11/11.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "PPCouponCell.h"

@implementation PPCouponCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(PPCouponModel *)model {
    
    self.itemMemo.text = [NSString stringWithFormat:@"• %@",model.itemMemo];
    
    switch (model.couponType) {
        case PPCouponType_canUse:{
            [self.itemBGImage setImage:[UIImage imageNamed:@"coupon_pai_canuse"]];

           } break;
        case PPCouponType_cantUse:{
            [self.itemBGImage setImage:[UIImage imageNamed:@"coupon_pai_cantuse"]];

        } break;
        default:
            break;
    }
}

@end
